﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="NewDegreeCourse.aspx.cs" Inherits="SistemaAcademico.Pages.NewDegreeCourse" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="Form1" runat="server">
        <h1 class="page-title">
            <i class="icon-pushpin"></i>Cadastro de Cursos/Aulas
        </h1>
        <div id="Div1" runat="server" class="widget">
            <div class="widget-header">
                <h3>Cadastro de novo Curso Superior</h3>
            </div>
            <div id="Div2" runat="server" class="widget-content form-horizontal">
                <fieldset id="Fieldset1" runat="server">
                    <p class="help-block">
                        Todos campos com * são obrigatórios
                    </p>
                    <h3>-Informações</h3>
                    <div class="control-group">
                        <label class="control-label" for="txtNomeCompleto">
                            Nome do curso*</label>
                        <div class="controls">
                            <asp:TextBox ID="txtNomeDoCurso" required="required" CssClass="input-medium" runat="server"></asp:TextBox>
                        </div>
                        <!-- /controls -->
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="txtNomeCompleto">
                            Descrição do Curso*</label>
                        <div class="controls">

                            <asp:TextBox ID="txtDescCurso" TextMode="MultiLine" required="required" CssClass="input-medium" runat="server"></asp:TextBox>
                        </div>
                        <!-- /controls -->
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="txtNomeCompleto">
                            Coordenador do Curso*</label>
                        <div class="controls">
                            <asp:DropDownList ID="ddlCdCoordenador" runat="server" DataSourceID="SqlDataSource1" DataTextField="nmProfessor" DataValueField="Id"></asp:DropDownList>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SATCCConnectionString %>" SelectCommand="SELECT [nmProfessor], [Id] FROM [ProfessorSet]"></asp:SqlDataSource>
                        </div>
                        <!-- /controls -->
                    </div>

                    <div class="row">
                        <div class="offset1 span3">
                            <label class="control-label" for="">
                                Disciplinas disponíveis</label>
                            <asp:ListBox ID="lstDisciplinasDisponiveis" runat="server" DataSourceID="sqlDtSrcMateria" DataTextField="nmMateria" DataValueField="Id"></asp:ListBox>
                            <asp:SqlDataSource ID="sqlDtSrcMateria" runat="server" ConnectionString="<%$ ConnectionStrings:SATCCConnectionString %>" SelectCommand="SELECT [Id], [nmMateria] FROM [MateriaSet] ORDER BY [nmMateria]"></asp:SqlDataSource>
                        </div>
                        <div class="span1" style="padding-top: 4%; padding-left: 4%;">
                            <div class="row"><a id="btnAdd" runat="server"><i class="icon-arrow-right icon-2x"></i></a></div>
                            <div class="row"><a id="btnRem" runat="server"><i class="icon-arrow-left icon-2x "></i></a></div>
                        </div>
                        <div class="span3">
                            <label class="control-label" for="">
                                Disciplinas no Curso</label>
                            <asp:ListBox ID="lstDisciplinasNoCurso" runat="server"></asp:ListBox>
                        </div>
                    </div>
                    <%--                        <div id="Div4" runat="server" class="controls">
                            <asp:TextBox required="required" ID="txtUserName" CssClass="input-medium" runat="server"></asp:TextBox>
                            <p class="help-block">
                                Seu login é feito para ter acesso ao portal e não poderá ser mudado.
                            </p>
                        </div>--%>

                    <br />
                    <br />
                    <asp:Button ID="btnContinuar" CssClass="btn btn-primary btnSalvar" runat="server"
                        Text="Continuar" OnClick="btnContinuar_Click" />
                          <asp:Button ID="btnVoltar" CssClass="btn btn-primary btnSalvar" PostBackUrl="~/Pages/Cursos.aspx" runat="server"
                        Text="Voltar" />
                </fieldset>
            </div>
        </div>
    </form>
</asp:Content>
